const mongoose = require('mongoose')
const OrderSchema = new mongoose.Schema({
    _mealId: {type: Number, required: true},
    date: {type: String, required: true},
    utime: {type: String, required: true},
    orderDetail: {type: Object, required: true},
    foodId: {type: Number, required: true},
    topic: {type: String, required: true},
    status: {type: Number, required: true}  //0：未制作 1：已下发制作 2： 制作完成 3： 已取餐 4：下发制作出错 5: 制作出错 6： 取餐超时
}) 

const Order = mongoose.model('Orders', OrderSchema)

module.exports = Order
